<div class="container">

        <!-- Jumbotron Header -->
        <header class="jumbotron hero-spacer">
            <h1>A Warm Welcome!</h1>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, ipsam, eligendi, in quo sunt possimus non incidunt odit vero aliquid similique quaerat nam nobis illo aspernatur vitae fugiat numquam repellat.</p>
            <p><a class="btn btn-primary btn-large">Call to action!</a>
            </p>
        </header>

        <hr>

        <!-- Title -->
        <div class="row">
            <div class="col-lg-12">
                <h3>Latest Features</h3>
            </div>
        </div>
        <!-- /.row -->

        <!-- Page Features -->
        {foreach from=$pro item=s}
        <div class="text-center">
            <div class="col-md-3 col-sm-6 hero-feature">
                <div class="thumbnail">
                    <img src="{$s.img}" alt="">
                    <div class="caption">
                        <h3>{$s.nama}</h3>
                        <p>{$s.deskripsi}</p>
                        <p>
                            <a href="cart.php?a=buy&idproduk={$s.idproduk}&idmember={$cookie.c_idm}" onclick = "myFunction()" class="btn btn-primary">Buy Now!</a>
                            <a href="#" class="btn btn-default">{$s.harga}</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        {/foreach}
        <!-- /.row -->

        <hr>

        <!-- Footer -->

<script>
function myFunction() {
    alert("Produk telah masuk ke daftar pemesanan\nsilahkan konfirmasi pembelian");
}
</script>

    </div>